﻿using SelfMadeMillionaire.Core.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace SelfMadeMillionaire.Web.Infrastructure.ViewModels.MailingList
{
	public class UnsubscribeViewModel
	{
		[Required]
		[DataType(DataType.EmailAddress)]
		[RegularExpression(@"^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$", ErrorMessage = "Please enter a valid email address")]
		[StringLength(100)]
		public string Email { get; set; }

		public bool IsSMM { get; set; }
		public bool IsMMM { get; set; }

		public bool IsSuccess { get; set; }
	}
}
